<table class="table table-striped">
    <thead>
    <tr>
        <th scope="col">工厂</th>
        <th scope="col">品名</th>
        <th scope="col">模具号</th>
        <th scope="col">问题</th>
        <th scope="col">改善内容</th>
        <th scope="col">改善区间</th>
        <th scope="col">改善前</th>
        <th scope="col">改善后</th>
        <th scope="col">结果判定</th>
        <th scope="col">备注</th>
    </tr>
    </thead>
    <tbody>
    {% for r in records %}
        <tr>
            <td>{{ r.factory }}</td>
            <td>{{ r.product }}</td>
            <td>{{ r.mold_no }}</td>
            <td>{{ r.problem }}</td>
            <td>{{ r.solution }}</td>
            <td>{{ r.stage }}</td>
            <td>{{ r.before }}</td>
            <td>{{ r.after }}</td>
            <td>{{ r.is_ok }}</td>
            <td>{{ r.comment }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>